FROM openjdk:17.0.2-jdk
ARG appJar
ARG workspace=/workspace
COPY build/libs/$appJar $workspace/app.jar
WORKDIR $workspace
RUN bash -c "touch app.jar"
ENTRYPOINT ["java","-jar","app.jar","-Dfile.encoding=utf-8"]